#!/bin/sh 
#
#cmdtool $CD_MOUNT/find.sh
#$CD_MOUNT/.products/.bin/gui/$CDWARE_ENV/netscape -xrm "*strings.22130:This process will either Install, Remove, or Launch\nsoftware from CDware.\n\nProceed?\n" -geometry =665x770+0+0 file://$WWW_HOME


if [ "$NETSCAPE_CATALYST" != "" ]; then
$NETSCAPE_CATALYST -xrm "*useStderrDialog: False" -xrm "*strings.22130:This process will either Install, Remove, or Launch\na demo from CDware.\n\nProceed?\n" -geometry =665x770+0+0 file://$WWW_HOME 2>&-
else
$CD_MOUNT/.products/.bin/gui/$CDWARE_ENV/netscape -xrm "*useStderrDialog: False" -xrm "*strings.22130:This process will either Install, Remove, or Launch\na demo from CDware.\n\nProceed?\n" -geometry =665x770+0+0 file://$WWW_HOME 2>&-
fi

#
# clean-up
#
if [ "$CDWARE_ENV" != "Solaris_1" ]; then
        audioplay -i $CD_MOUNT/.products/$disc_name/sounds/bye.au&
else
        cat $CD_MOUNT/.products/$disc_name/sounds/bye.au > /dev/audio&
fi


# mail or print more information request

if [ -r /tmp/httpd/info.email ]; then
     echo "------------------------------" >> /tmp/httpd/info.email
  /usr/ucb/mail -s "$disc_name Lead for Your Product" < /tmp/httpd/info.email cdwareemlts@sun.com 
fi
if [ -r /tmp/httpd/info.fax ]; then  
     echo "------------------------------" >> /tmp/httpd/info.fax
     echo "" >> /tmp/httpd/info.fax
     echo "FAX US! at (415)961-6070" >> /tmp/httpd/info.fax
     echo "" >> /tmp/httpd/info.fax
     echo "------------------------------" >> /tmp/httpd/info.fax
  	/usr/ucb/lpr /tmp/httpd/info.fax
fi



# kill httpd

kill -9 `cat /tmp/httpd/logs/httpd.pid`

# Clean up wais stuff:kill wais, remove link

rm -f /tmp/.wais /tmp/waisserver.log 
kill $PID_CDWARE
kill $PID_CATALOG


# remove httpd config

rm -rf /tmp/httpd

if [ "$dir_exist" = "1" ]; then
  mv $HOME/.netscape/preferences.SunCD $HOME/.netscape/preferences
else 
  rm -rf $HOME/.netscape
fi


exit 0
